package com.sharemarking.system.mapper;

import com.sharemarking.system.dto.order.OrderInfoDto;
import com.sharemarking.system.dto.order.OrderListDto;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author dxy
 */
@Repository
public interface OrderMapper {
    List<OrderListDto> getOrderList(Map map);
    Integer getOrderListTotal(Map map);

    @Select("SELECT * FROM wa_order WHERE id = #{id}")
    OrderInfoDto getOrderInfo(Integer id);

    List<Map<String, Object>> getExcelList(Map<String, Object> map);
}
